package com.itheima.tanhua.web;

import com.itheima.tanhua.service.RecommendService;
import com.itheima.tanhua.vo.HuanxinUserVo;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.http.ResponseEntity;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

@RestController
@RequestMapping("/huanxin")
public class HuanxinController {

    @Autowired
    private RecommendService recommendService;


    @GetMapping("/user")
    public ResponseEntity user(){
       HuanxinUserVo vo= recommendService.findHuanxinById();
        return ResponseEntity.ok(vo);
    }

}
